var mongoose = require('mongoose')

var schema = require('../config/schema')
var vacationSchema = mongoose.Schema(schema.vacation)

// vacationSchema.methods.getDisplayPrice = function(){

//     return '$' + (this.priceInCents/100).toFixed(2);
// }

var vacationModel = mongoose.model('vacation', vacationSchema)

module.exports = vacationModel;
